import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
	state: {
		isShowNav: true,		//是否显示导航
		locationCity: sessionStorage.getItem("curCity")?sessionStorage.getItem("curCity"):"定位中"
	},
	mutations: {
		changeShow(state, bool) {
			state.isShowNav = bool;
		},
		setCity(state, city) {
			state.locationCity = city;
			sessionStorage.setItem("curCity",city);
		}
	},
	actions: {

	}
})
